package com.mixsmart.spellsql.where.exp;

import com.mixsmart.spellsql.IExpression;
import com.mixsmart.spellsql.where.CompositeWhere;

/**
 * 不等于;如:name <> '张三'
 * @author lmq
 * @version 1.0
 * @since 1.0
 */
public class NotExpression extends CompositeWhere implements IExpression {

    private String fieldName;
	
	private Object value;
	
	public NotExpression(String fieldName,Object value) {
		this.fieldName = fieldName;
		this.value = value;
	}
	
	@SuppressWarnings("unchecked")
	@Override
	public String build() {
		super.getParam(fieldName, value);
		return fieldName+" <> :"+fieldName;
	}
	
}
